<?php
	$paginator = $this->arrParam['paginator'];
?>

<div id="toolbar-box" class="title">
	<div class="top-box">
		<div class="top-box">
			<div class="top-box"></div>
		</div>
	</div>
	<div class="m-box">
		<div class="icon-page title-news"></div>
		<div class="toolbar-button">
			<a href="<?php echo $this->baseUrl("/admin/news/index/page/" . $paginator['currentPage']); ?>">
				<img src="<?php echo $this->baseUrl(PUBLIC_PATH . "/img/toolbar/back.png");?>"><br />Trở về
			</a>
		</div>
		<div class="h2">Chỉnh sửa bài viết</div>
		<div class="clear"></div>
	</div>
	<div class="bottom-box"><div class="bottom-box"><div class="bottom-box"></div></div></div>
</div>

<div class="navbar-inner">
<?php
	if ($this->msg != '') {
		echo "<div class='alert alert-error'>" . $this->msg . "</div>";
	}

	echo $this->form;

	$_SESSION['userfoldername'] = '/news/content/';
	$toolbar = array (
					array( 'Source', '-', 'Preview', 'Print', '-', 'Templates' ),
					array( 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ),
					array( 'Bold', 'Italic', 'Underline', 'Strike', '-', 'TextColor', 'BGColor' ),
					array( 'Styles', 'Format', 'Font', 'FontSize' ),
					array( 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ),
					array( 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent' ),
					array( 'Image', 'Link', 'Unlink' ),
					array( 'Find', 'Replace', 'Maximize' )
				);
	echo $this->editorElement('noi_dung', array('toolbar' => $toolbar), '703px', '250');
?>
</div>

<script type="text/javascript">
	jQuery().ready(function(){
		$("#tieu_de").focus();
	});
</script>